package dLogistic.domain.model.Klient;

import java.util.UUID;

/**
 * Created by Przemek on 2014-10-24.
 */
public class KlientFactory {

    public KlientAggr dodajKlienta(String imie, String nazwisko, String telefon, String email){
        UUID uuid = UUID.randomUUID();

        KlientAggr kli =  new KlientAggr(imie, nazwisko, telefon, email, uuid.toString());

        KlientRepository kliRep = new KlientRepository();
        kliRep.zapisz(kli);
        return kli;
    }


}
